<#include file="public/header.html"#>

<div class="wrap">

    <div class="top-icon f16">
        <div class="icon cateadd-icon"></div>
        添加分类
    </div>

    <form name="form1" action="<#url class=Content function=cateEdit ac=savecateedit cid=$T.get.cid#>" method="post">
        <table width="98%" border="0" cellpadding="5" cellspacing="1">
            <tr class="form-field">
                <td width="10%">分类名称：</td>
                <td >
                    <input type="text" name="name" id="name" value="<#$cateRow.name#>" class="wp30" maxlength="50">
                    *
                </td>
            </tr>

            <tr class="form-field">
                <td>选择父类：</td>
                <td>
                    <select name="pid">
                        <#$cateOptions#>
                    </select>
                    *
                </td>
            </tr>
            <tr class="form-field">
                <td>描述：</td>
                <td><textarea name="description" style="width:30%; height:60px"><#$cateRow.name#></textarea></td>
            </tr>
            <tr class="form-field">
                <td>权重：</td>
                <td><input type="text" name="weight"  id="weight" value="<#$cateRow.weight#>" class="wp10" maxlength="50"></td>
            </tr>
            <tr class="form-field">
                <td>排序：</td>
                <td><input type="text" name="ranking" id="ranking" value="<#$cateRow.ranking#>" class="wp10" maxlength="50"> (如果排序为0则隐藏该类)</td>
            </tr>

            <tr class="form-field">
                <td colspan="2" align="left">
                    <input class="button submit" type="submit" name="submit" value=" 提交 " >
                    <input class="button" type="reset" name="Input" value=" 重置 " >
                </td>
            </tr>
        </table>
    </form>
</div>

<#include file="public/footer.html"#>